package com.atguigu.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author luomingliang
 * @date 2020/5/27 23:56
 * 不加@ComponentScan的话默认只扫描当前项目中的类,加了后会扫描引入包中的类
 * @EnableDiscoveryClient nacos注册
 * @EnableFeignClients 服务调用
 */
@EnableFeignClients
@EnableDiscoveryClient
@ComponentScan("com.atguigu")
@SpringBootApplication
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }
}
